import Vue from "vue";
import VueRouter from "vue-router";
import WelcomePage from "../views/WelcomePage1.vue"; // 引入欢迎界面
import LoginPage from '../views/LoginPage.vue';
import VehicleInfo from '../views/Vehicleinfo';
import DeviceInfo from '../views/DeviceInfo.vue';
import parkingGuidances from '../views/ParkingGuidanceInfo.vue';
import User from '../views/UserInfo.vue';
import PaymentInfo from '../views/PaymentInfo.vue';
import CarparkInfo from '../views/CarparkInfo.vue';
Vue.use(VueRouter);

export default new VueRouter({
  mode: "history",
  routes: [
    {
      path: "/",
      redirect: "/welcome" // 默认跳转到欢迎界面
    },
    {
      path: "/welcome",
      name: "Welcome",
      component: WelcomePage
    },
    {
      path: "/login",
      name: "Login",
      component: LoginPage
    },
    {
      path: "/vehicleinfo",
      name: "Vehicleinfo",
      component: VehicleInfo
    },
    {
      path: "/login",
      name: "Login",
      component: LoginPage
    },
    {
      path: "/deviceInfo",
      name: "DeviceInfo",
      component: DeviceInfo
    },
    {
      path: "/parkingGuidances",
      name: "ParkingGuidances",
      component: parkingGuidances
    },
    {
      path: "/user",
      name: "User",
      component: User
    },
    {
      path: "/paymentInfo",
      name: "PaymentInfo",
      component: PaymentInfo
    },
    {
      path: "/carparkInfo",
      name: "CarparkInfo",
      component: CarparkInfo
    }
  ]
});
